<template>
  <div id="container">
    <my-code-mirror v-model="code" />
  </div>
</template>
<script setup>
import MyCodeMirror from '@/components/CodeMirror/Index.vue'
import { ref, watch } from 'vue'
const code = ref(' function sum(a,b) { return a + b; } ')
watch(() => code.value, (newValue) => {
  console.log(newValue);
})
</script>
<style>
</style>
